﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace APILocawebGateway.AMEX
{
    public class UtilidadesAMEX
    {
        public static String FormatarPreco(Decimal price)
        {
            String priceAsString = price.ToString();
            if (priceAsString.Contains(","))
                priceAsString = priceAsString.Remove(priceAsString.IndexOf(","));

            return (priceAsString.Replace(",", "").Replace(".", "") + "00");
        }
    }
}
